package leetcode.剑指offer.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author :songyaozhang
 * @date :Created 2021/7/29 16:29
 * @description :
 */
@Data
@AllArgsConstructor
public class TreeNode {
    public int val;
    public TreeNode left;
    public TreeNode right;
    public TreeNode(int x) { val = x; }

    @Override
    public String toString() {
        return this.val + "";
    }
}
